home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / wb / backclock / sources / conf.h < prev    next >
C/C++ Source or Header  |  1999-06-15  |  817b  |  29 lines

  1. /* entete: conf.h version 1.2 10-01-99
  2.  */
  3.  
  4. #define CF_NAMEENV    "env:backclock.prefs"
  5. #define CF_NAMEENVARC "envarc:backclock.prefs"
  6. #define ERR_ENV       "File error %ld on ENV:backclock.prefs"
  7. #define ERR_ENVARC    "File error %ld on ENVARC:backclock.prefs"
  8.  
  9. struct ConfFile {
  10.   UBYTE id[4] ;         // BACK
  11.   UWORD posX,
  12.         posY,
  13.         lenX,
  14.         lenY ;
  15.   struct RGB cmap[NUM_COLORS] ;
  16.   UWORD fill ;         // fill or transparent
  17.   UWORD filln ;        // fill needles
  18.   UWORD drawsec ;      // draw the seconds ?
  19.   UWORD drawsha ;      //          shadows ?
  20.   UWORD drawmpo ;      //          middle point ?
  21. } ;
  22. // prepare the file to be saved
  23. BOOL SaveConf(idWin * prj, UBYTE *) ;
  24. BOOL LoadConf(idWin * prj) ;
  25.  
  26. // save prefs file to env (and to envarc)
  27. void SaveEnv(idWin * prj, BOOL envarc) ;
  28.  
  29.